﻿using System;
using System.Text;
using Yaml.Presentation.Tokens;

namespace Yaml.Serialization.Events {
    public class StreamStartEvent : Event {
        private Encoding encoding;

        public StreamStartEvent() : this(Encoding.UTF8) {
        }

        public StreamStartEvent(Encoding encoding)
            : base() {
            this.encoding = encoding;
        }

        public StreamStartEvent(StreamStartToken token)
            : base() {
            this.encoding = token.Encoding;
        }

    }
}
